<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/member_global.css?t={ctime}" rel="stylesheet" type="text/css" />
<link href="../css/member_main_lot_all.css?t={ctime}" rel="stylesheet" type="text/css">
<link href="../css/member_main_lot_b1.css?t={ctime}" rel="stylesheet" type="text/css">
<title>{Title}</title>
<script language="JavaScript">
<!--
var notNumber = "{notNumber}";
var underMinStake = "{underMinStake}";
var overLottoMaxBetLimitValue = "{overLottoMaxBetLimitValue}";
var overBetLimit = "{overBetLimit}";
var overMaxPayOff = "{overMaxPayOff}";
var noMoney = "{noMoney}";
var sureStake = "{sureStake}";
var overCredit = "{overCredit}";
var overEventLimit = "{overEventLimit}";
var arrBT = [19, 20];
var arrNum = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]];

function CheckNumKey(){
	if(event.keyCode == 13) return true;
	if((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode > 95 || event.keyCode < 106)){
		alert(notNumber);
		return false;
	}
}

function clearTextField(){
	document.ShowOddsForm.reset();
	return;
}

function FinalCheck(){
	var objGold, strWager = "", strName, intTotal = 0, objNow;
	var i = 0, j = 0, intNum = 0, intBT = 0, k = 0;

	for(i = 0; i < arrBT.length; i++)	{
		intBT = arrBT[i];

		for (j = 0; j < arrNum[i].length; j++){
			intNum = arrNum[i][j];
			strName = "Odds"+intBT.toString()+"_"+intNum.toString();

			if(null != document.ShowOddsForm[strName]){
				objGold = document.ShowOddsForm[strName];
				//if (OtherCheck(objGold, document.ShowOddsForm[strName].oddsid, intBT, intNum) == false) return;
				if(objGold.value == "")continue;
				strWager += intNum.toString() + "#" + document.ShowOddsForm[strName].oddsid + "#" + objGold.value + "#";
				strWager += intBT.toString() +"@";
				intTotal += parseInt(objGold.value);
			}
		}
	}

	//請填入下注金額！
	if (intTotal == 0)	{
		alert(noMoney);
		return false;
	}
	//總金額不能超過信用餘額
	/*if (intTotal > chkCredit) {
		alert(overCredit+chkCredit);
		return false;
	}*/
	//確定下注？
	if (!confirm(sureStake))	return false;
	objNow = new Date();
	document.CommonWagerForm.WagerContent.value = strWager;
	document.CommonWagerForm.CheckKey2.value = Math.round(objNow.getTime() / 1000);
	document.CommonWagerForm.submit();
	setTimeout("clearTextField();", 500);
	document.GetOddsForm.submit();
}
//-->
</script>
</head>

<body oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">
<form action="onwager_quick.php" target="leftFrame" method="Get" name="CommonWagerForm">
<input type="hidden" name="isQuick" value="Yes">
<input type="hidden" name="UserID" value="{UserID}">
<input type="hidden" name="GambleID" value="{GambleID}">
<input type="hidden" name="LottoID" value="{LottoID}">
<input type="hidden" name="WagerContent" value="">
<input type="hidden" name="CheckKey1" value="{CheckKeyValue1}">
<input type="hidden" name="CheckKey2" value="{CheckKeyValue2}">
<input type="hidden" name="sid" value="{sid}">
</form>
<form name="ShowOddsForm">

<!--樣式2-->
<div class="topStyle_2">
<table class="mtop" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td align="center" class="menu_title">{Title}</td>
			<td align="right" valign="top" class="mictxt">{Periods}<em>{SerialNo}</em> ({OpeningDate}{ShowGameDate}&nbsp;{ShowGameTime})</td>
		</tr>
		</table>
	</td>
</tr>
<tr class="menu_tab">
	<td nowrap="nowrap" class="menu_tab" >&nbsp;</td>
</tr>
</table>
</div>

<div class="float_outside">
<div class="mratab_sx">
<table width="490" border="0" cellpadding="0" cellspacing="0" class="mbtab_mbnu2">
  <tr class="mbtitle">
    <td width="60">{AnimalsTitle}</td>
    <td width="145">{NumberTitle}</td>
    <td width="50">{OddsTitle}</td>
    <td width="60">{AnimalsTitle}</td>
    <td width="145">{NumberTitle}</td>
    <td width="50">{OddsTitle}</td>
    </tr>
  <tr class="mcen">
    <th>{Animals1}</th>
    <td class="mbline_nb">{AParams1}</td>
    <td class="mbline_baratio">{Odds19-1}</td>
    <th class="mcen">{Animals2}</th>
    <td class="mbline_nb">{AParams2}</td>
    <td class="mbline_baratio">{Odds19-2}</td>
    </tr>
  <tr class="mcen">
    <th>{Animals3}</th>
    <td class="mbline_nb">{AParams3}</td>
    <td class="mbline_baratio">{Odds19-3}</td>
    <th>{Animals4}</th>
    <td class="mbline_nb">{AParams4}</td>
    <td class="mbline_baratio">{Odds19-4}</td>
    </tr>
  <tr class="mcen">
    <th>{Animals5}</th>
    <td class="mbline_nb">{AParams5}</td>
    <td class="mbline_baratio">{Odds19-5}</td>
    <th>{Animals6}</th>
    <td class="mbline_nb">{AParams6}</td>
    <td class="mbline_baratio">{Odds19-6}</td>
    </tr>
  <tr class="mcen">
    <th class="mcen">{Animals7}</th>
    <td class="mbline_nb">{AParams7}</td>
    <td class="mbline_baratio">{Odds19-7}</td>
    <th class="mcen">{Animals8}</th>
    <td class="mbline_nb">{AParams8}</td>
    <td class="mbline_baratio">{Odds19-8}</td>
    </tr>
  <tr class="mcen">
    <th>{Animals9}</th>
    <td class="mbline_nb">{AParams9}</td>
    <td class="mbline_baratio">{Odds19-9}</td>
    <th>{Animals10}</th>
    <td class="mbline_nb">{AParams10}</td>
    <td class="mbline_baratio">{Odds19-10}</td>
    </tr>
  <tr class="mcen">
    <th>{Animals11}</th>
    <td class="mbline_nb">{AParams11}</td>
    <td class="mbline_baratio">{Odds19-11}</td>
    <th>{Animals12}</th>
    <td class="mbline_nb">{AParams12}</td>
    <td class="mbline_baratio">{Odds19-12}</td>
    </tr>
</table>
</div>
<div class="mratab_sxcolor">
  <table width="230" border="0" cellpadding="0" cellspacing="0" class="mbtab_mbnu2">
    <tr class="mbtitle">
      <td width="45">{Mantissa}</td>
      <td width="70">{OddsTitle}</td>
      <td width="45">{Mantissa}</td>
      <td width="70">{OddsTitle}</td>
    </tr>
    <tr class="mcen">
      <th class="mcen">{MantissaTip1}</td>
      <td class="mbline_baratio">{Odds20-1}</td>
	  <th class="mcen">{MantissaTip2}</td>
	  <td class="mbline_baratio">{Odds20-2}</td>
    </tr>
    <tr class="mcen">
      <th class="mcen">{MantissaTip3}</td>
      <td class="mbline_baratio">{Odds20-3}</td>
	  <th class="mcen">{MantissaTip4}</td>
	  <td class="mbline_baratio">{Odds20-4}</td>
    </tr>
    <tr class="mcen">
      <th class="mcen">{MantissaTip5}</td>
      <td class="mbline_baratio">{Odds20-5}</td>
	  <th class="mcen">{MantissaTip6}</td>
	  <td class="mbline_baratio">{Odds20-6}</td>
    </tr>
    <tr class="mcen">
      <th class="mcen">{MantissaTip7}</td>
      <td class="mbline_baratio">{Odds20-7}</td>
	  <th class="mcen">{MantissaTip8}</td>
	  <td class="mbline_baratio">{Odds20-8}</td>
    </tr>
    <tr class="mcen">
      <th class="mcen">{MantissaTip9}</td>
      <td class="mbline_baratio">{Odds20-9}</td>
	  <th class="mcen">{MantissaTip0}</td>
	  <td class="mbline_baratio">{Odds20-0}</td>
    </tr>
  <tr class="mcen">
    <td class="mbline_baratio" colspan="4"><input type="button" value="{btnSend}" onclick="FinalCheck();" class='zabottonR'><input type="reset" value="{btnReset}" class='zabotton'></td>
  </tr>
  </table>
</div>
</div>
</form>
</body>
</html>